<?php
namespace Admin\Controller;

class indexController extends BaseController{
	function index(){
		$this->display();
	}
	function welcome(){
		$username = $_COOKIE['username'];
		$adminOb=M('manager');
		$re = $adminOb->where("username='$username'	")
						->select();
		$managers = $re;
		

		$ip=$_SERVER["REMOTE_ADDR"];
		echo $ip;
		$regtimes=time();
		$re['ip']=$ip;
		$re['regtimes']=$regtimes;
		$manager = $adminOb->where("username = '$username'")
							->data($re)
							->save();
		
		$this->assign('t',time());
		$this->assign('str',"abcdef");			
		$this->assign('managers',$managers);
		$this->display();
	}
	function aboutus(){
		$this->display();
	}
	
} 